package com.hfuu.demo.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: gunala
 * @date: 2024/2/3 16:11
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    @PreAuthorize("@securityAuthority.hasAuthority('sys:hello:list')")
    public String hello(){
        return "hello";
    }
}
